package chuishop.yiqimaicai.mapper;

import chuishop.yiqimaicai.pojo.Employee;

import java.util.List;

public interface EmployeeMapper {
    /**
     * 显示所有员工信息
     * @return
     */
    List<Employee> findAllEmployee();

    /**
     * 添加新员工
     * @param employee
     * @return
     */
    int addEmployee(Employee employee);

    /**
     * 按id批量删除员工
     * @param ids
     * @return
     */
    int deleteEmployee(String[] ids);

    /**
     * 更新修改员工
     * @param employee
     * @return
     */
    int updateEmployee(Employee employee);

    /**
     * 根据姓名查询员工信息
     * @return
     */
    List<Employee> searchEmployeeByname(String name);

    int loginEmployee(String idpassword);

    Employee findEmployeeById(Integer id);

    List<Employee> findEmplyeeBylimits(int limits);

}




